package leveldesigner.map;

import java.io.Serializable;

import leveldesigner.playerattributes.PlayerPosition;
import leveldesigner.playerattributes.PlayerWalking;

public class MapTile implements Serializable {
	private static final long serialVersionUID = -191357535029739011L;
	private int tileNumber;
	private PlayerPosition playerPosition;
	private int playerWalking;
	
	public MapTile(int tileNumber){
		this.tileNumber = tileNumber;
		playerPosition = PlayerPosition.PLAYER_UP;
		playerWalking = PlayerWalking.UP.getNumber()|PlayerWalking.DOWN.getNumber()|PlayerWalking.
		LEFT.getNumber()|PlayerWalking.RIGHT.getNumber();
	}
	public void setTileNumber(int tileNumer) {
		this.tileNumber = tileNumer;
	}
	public int getTileNumber() {
		return tileNumber;
	}
	public void setPlayerPosition(PlayerPosition playerPosition) {
		this.playerPosition = playerPosition;
	}
	public PlayerPosition getPlayerPosition() {
		return playerPosition;
	}
	public void setPlayerWalking(int playerWalking) {
		this.playerWalking = playerWalking;
	}
	public int getPlayerWalking() {
		return playerWalking;
	}
}
